package com.gofruit.bean;

/**
 * 
 * @author 陈瑶
 * @see 订单项实体。
 *
 */
public class OrderItem {
	
	private int orderItemId;//订单项编号
	private int productId;//产品编号
	//private int orderId;
	private String productName;//产品名
	private int productNum;//产品数量
	private Double orderItemSalePrice;//产品销售价格
	private Double orderItemSumPrice;//产品总价
	//与Order，多对一关系
	private Order order;
	
	public int getOrderItemId() {
		return orderItemId;
	}


	public void setOrderItemId(int orderItemId) {
		this.orderItemId = orderItemId;
	}


	public int getProductId() {
		return productId;
	}


	public void setProductId(int productId) {
		this.productId = productId;
	}

/*
	public int getOrderId() {
		return orderId;
	}


	public void setOrderId(int orderId) {
		this.orderId = orderId;
	}
*/

	public String getProductName() {
		return productName;
	}


	public void setProductName(String productName) {
		this.productName = productName;
	}


	public int getProductNum() {
		return productNum;
	}


	public void setProductNum(int productNum) {
		this.productNum = productNum;
	}


	public Double getOrderItemSalePrice() {
		return orderItemSalePrice;
	}


	public void setOrderItemSalePrice(Double orderItemSalePrice) {
		this.orderItemSalePrice = orderItemSalePrice;
	}


	public Double getOrderItemSumPrice() {
		return orderItemSumPrice;
	}


	public void setOrderItemSumPrice(Double orderItemSumPrice) {
		this.orderItemSumPrice = orderItemSumPrice;
	}


	public void setOrder(Order order) {
		this.order = order;
	}


	public Order getOrder() {
		return order;
	}


	public OrderItem(int orderItemId, int productId,
			String productName, int productNum, Double orderItemSalePrice,
			Double orderItemSumPrice) {
		super();
		this.orderItemId = orderItemId;
		this.productId = productId;
		//this.orderId = orderId;
		this.productName = productName;
		this.productNum = productNum;
		this.orderItemSalePrice = orderItemSalePrice;
		this.orderItemSumPrice = orderItemSumPrice;
	}


	public OrderItem() {
		super();
		// TODO Auto-generated constructor stub
	}
	
}
